package com.meisiabc.app.repository.db.manager;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meisiabc.app.repository.db.entity.WechatAppSession;
import com.meisiabc.app.repository.db.mapper.WechatAppSessionMapper;
import org.springframework.stereotype.Service;

@Service
public class WechatAppSessionManager extends ServiceImpl<WechatAppSessionMapper, WechatAppSession> {
    public WechatAppSession selectByOpenid(String openId) {
        return getOne(new QueryWrapper<WechatAppSession>().eq("openid", openId));
    }
}
